package com.mayikt.classloader;

import sun.misc.Launcher;

/**
 * @ClassName Test006
 * @Author 蚂蚁课堂余胜军 QQ644064779 www.mayikt.com
 * @Version V1.0
 **/
public class Test006 {
    public static void main(String[] args) throws ClassNotFoundException {

//        ClassLoader.getSystemClassLoader().loadClass("ff");
//        System.out.println("1");
//        MayiktEntity mayiktEntity = new MayiktEntity();
//        Class<?> aClass = ClassLoader.getSystemClassLoader().loadClass("com.mayikt.classloader.MayiktEntity");
//        System.out.println(aClass.getClassLoader());
//        Class<?> aClass = ClassLoader.getSystemClassLoader().loadClass("java.lang.Object");
//        System.out.println(aClass);
        Class<?> aClass = ClassLoader.getSystemClassLoader().loadClass("com.mayikt.classloader.MayiktEntity");
        System.out.println(aClass);
        System.out.println(aClass.getClassLoader());

    }
}
